let ul=document.querySelector('.main ul')
let xhr =new XMLHttpRequest()
xhr.open('get',`http://chst.vip:1234/api/getmoneyctrlproduct?productid=${localStorage.getItem('productid')}`,true)
xhr.onload=function(){
    if(xhr.status===200){
        let res =JSON.parse(xhr.responseText)
        let an=res.result
        let lis=''
        an.forEach(item => {
            lis+=`
            <li>
            <p>${item.productName}</p>
            <span>${item.productFrom} | ${item.productTime}</span>
            <span>${item.productTips}</span>
            <p>
            <img src="${item.productImgSm.match(/imgurl=(\S*)/)[1]}">
                ${item.productInfo2}
            </p>
            <p>
            <img src="${item.productImgSm.match(/imgurl=(\S*)/)[1]}">
            </p>
            ${item.productCity}
            <p>
                前往购买
            </p>
            <img src="http://chst.vip:8081/for-stu/wfzh/images/mmbweixin2.png" alt="">
            <input type="text" >
            <div>
                <p></p>
                <p>提交评论</p>
            </div>

            <div class="one">
                    <div class="two">
                       <img src="http://qzapp.qlogo.cn/qzapp/218180/97440BFF7534095E1C3BE0D1B6EF1BA9/30" alt="">
                       <nav>赶鸭子上架</nav>
                       <nav>2016/10/25 14:13:53</nav>
                       <nav>预订了</nav>
                    </div>
                </div>
            <div class="one">
                    <div class="two">
                       <img src="http://qzapp.qlogo.cn/qzapp/218180/97440BFF7534095E1C3BE0D1B6EF1BA9/30" alt="">
                       <nav>赶鸭子上架</nav>
                       <nav>2016/10/25 14:13:53</nav>
                       <nav>预订了</nav>
                    </div>
                </div>
           

        </li>
            `
            
        });
        ul.innerHTML=lis
          
    }
}
xhr.send(null)